package com.xxgc.eow.service;

import com.xxgc.eow.entity.Address;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 企业地址表 服务类
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-21
 */
public interface IAddressService extends IService<Address> {

    List<Address> getAllByCompanyId(int companyId);

    int delByCompanyId(Address address);
    int delByAddressName(Address address);

    int updatByOldName(Address address , String oldName);

    int addAddress(Address address);

    List<Address> getAllByKeyWord(int pageNum ,int pageSize ,String KeyWord);

    List<Address> getAllPage(String keyWord);
}
